package mediator;

/**
 * 具体同事类 - 窗帘
 */
public class Curtains extends Device {

    public Curtains(String name, SmartHomeMediator mediator) {
        super(mediator);
        mediator.register(name, this);
    }

    public void open() {
        System.out.println("拉开窗帘");
    }

    public void close() {
        System.out.println("拉上窗帘");
    }
}
